<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
// 网站地址
String netPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>
<div>
<input type="hidden" name="pageSum" value="${pageSum}" id="pageSum"/>
<table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0" class="yhgltable_1">
   <thead>
     <tr>
       <th>问题ID</th>
       <th>提问内容</th>
       <th>回答标记</th>
	   <th>提问时间</th>
     </tr>
   </thead>
   <c:forEach items="${lstSuggestions.data}" var="suggestionInfo" varStatus="stats">
      <tr>
        <c:if test="${stats.index%2==0}">
		  <tr>
	    </c:if>
		<c:if test="${stats.index%2==1}">
				<tr class="gray">
		</c:if>
           <td width="5%"><p>
               &nbsp;<input type="checkbox" name="group_box" value="${suggestionInfo.id}">
               ${suggestionInfo.id}</p></td>
           <td width="62%">${suggestionInfo.contents}</td>
            <td width="5%">
	          <c:choose>
	          	<c:when test="${suggestionInfo.sign==0}">
	          		<a href="javascript:void(0);" title="未回答" onclick="toUpdate(${suggestionInfo.id})">未回答</a>
	          	</c:when>
	       	<c:otherwise>
    		<a href="javascript:void(0);" id="recommendImg_${suggestionInfo.id}"  onclick="toUpdate(${suggestionInfo.id})">已回答</a>
	          	</c:otherwise>
	          </c:choose>
	          <input type="hidden" id="recommendItem_${suggestionInfo.id}" value="${suggestionInfo.sign}"  style="width:10px;"/>
	        </td>
	        <td width="10%"><fmt:formatDate value="${suggestionInfo.createDate}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        </tr>
   </c:forEach>  
</table>
</div>
<style>
	.ifTop {
		cursor:pointer;
	}
</style>